package Common

import (
	"github.com/gin-gonic/gin"
)

func GetUserId(c *gin.Context) (string, error) {
	token := c.GetHeader("Authorization")
	userId, _, err := CodeToken(token)

	return userId, err
}
